<?php
class IndexController extends Controller
{
    function showIndex()
    {
        //报名海选人员
        $this->putIntoPage("users", $this->modules->User->getAll());
        //每日之星
        $this->putIntoPage("dayStar", $this->modules->UserVote->dayStar(1));
        //最近的活动
        $this->putIntoPage("nearliestActivity", $this->modules->Activity->findNearliest());
        $this->putIntoPage("nearliestActivities", $this->modules->Activity->findNearlier(4));
        $this->putIntoPage("lastApplication", $this->modules->Application->findLast(14));
        $this->putIntoPage("dayStars", $this->modules->UserVote->dayStars(1, 10));
        $this->putIntoPage("bbs", $this->modules->Bbs->find(7));

        $this->render("front_index");
    }

    function user()
    {
        print_r($_SESSION);
        die();
    }

}

?>